import pyppeteer.chromium_downloader
import os


print('默认版本是：{}'.format(pyppeteer.__chromium_revision__))
print('可执行文件默认路径：{}'.format(pyppeteer.chromium_downloader.chromiumExecutable.get('win64')))
print('win64平台下载链接为：{}'.format(pyppeteer.chromium_downloader.downloadURLs.get('win64')))


# 创建定义路径
# path = r'C:\Users\xxxx\AppData\Local\pyppeteer\pyppeteer\local-chromium\1181205'
# if not os.path.exists(path):
#     os.makedirs(path)
#     print(f"路径 {path} 已创建。")
# else:
#     print(f"路径 {path} 已存在。")

# chrome-win.zip下载地址：https://cdn.npmmirror.com/binaries/chromium-browser-snapshots/Win_x64/1264828/chrome-win.zip